package Solutions;

import java.util.Arrays;

public class Solution3 {
    public static void main(String[] args) {
        String arr[]=new String[]{"abc","def","ghi","123","456","789"};
        Exchange(arr);
        System.out.println(Arrays.toString(arr));
    }

    public static void Exchange(String[] str){
        int length = str.length;
        for (int left=0,right=length-1;left<right;left++,right--){
            String temp=str[right];
            str[right]=str[left];
            str[left]=temp;
        }
    }
}
